package org.smallframework.spring;

import sf.core.DBObject;
import sf.database.mapper.DaoMapper;

/**
 * 公共mapper
 * @param <M>
 * @param <T>
 */
public class CommonServiceImpl<M extends DaoMapper<T>, T extends DBObject> implements CommonService<T> {
    protected M mapper;

    protected Class<T> domainClass;

    public CommonServiceImpl(M mapper, Class<T> domainClass) {
        this.mapper = mapper;
        this.domainClass = domainClass;
    }

    public M getMapper() {
        return mapper;
    }
}
